package com.xxx.demo.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxx.demo.entity.TUsers;
import com.xxx.demo.entity.TUsersExample;
import com.xxx.demo.tiaoJian.UserTiaoJian;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TUsersMapper extends BaseMapper<TUsers> {
    //long countByExample(TUsersExample example);
    //
    //int deleteByExample(TUsersExample example);

    Integer deleteByPrimaryKey(Long id);
    //
    //int insert(TUsers record);
    //
    //int insertSelective(TUsers record);
    //
    //List<TUsers> selectByExample(TUsersExample example);
    //
    //TUsers selectByPrimaryKey(Integer id);
    //
    //int updateByExampleSelective(@Param("record") TUsers record, @Param("example") TUsersExample example);
    //
    //int updateByExample(@Param("record") TUsers record, @Param("example") TUsersExample example);
    //
    //int updateByPrimaryKeySelective(TUsers record);
    //
    //int updateByPrimaryKey(@Param("users") TUsers record);
    //
    ////通过条件查询用户
    //List<TUsers> queryUserByTiaoJian(UserTiaoJian userTiaoJian);
    ////查询所有条数
    //int queryCountUser(UserTiaoJian userTiaoJian);


    //=======================================以下代码是改造代码======================================
    /**
     *分页查询管理员
     * @param page
     * @param users
     * @return
     */
    IPage<TUsers> selectUser(Page<TUsers> page, @Param("users")TUsers users);
}